<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (C) 2022 - Open Source Geospatial Foundation. All rights reserved.
 This code is licensed under the GPL 2.0 license, available at the root
 application directory.
 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
    <!-- GetFeature SpatialJSON -->
    <bean id="spatialJSONGetFeatureResponse" class="org.geoserver.wfs.json.SpatialJSONGetFeatureResponse">
        <constructor-arg ref="geoServer" />
        <constructor-arg value="application/json; subtype=json/spatial" />
    </bean>
    
    <!-- GetFeature SpatialJSON (JSONP) -->
    <bean id="spatialJSONPGetFeatureResponse" class="org.geoserver.wfs.json.SpatialJSONGetFeatureResponse">
        <constructor-arg ref="geoServer" />
        <constructor-arg value="text/javascript; subtype=json/spatial" />
    </bean>
    
    <!-- ModuleStatus SpatialJSON -->
    <bean id="spatialJSONExtension" class="org.geoserver.platform.ModuleStatusImpl">
        <property name="module" value="gs-spatialjson" />
        <property name="name" value="SpatialJSON Format Output Extension"/>
        <property name="component" value="SpatialJSON Format Output Extension"/>
        <property name="available" value="true"/>
        <property name="enabled" value="true"/>
  </bean>
</beans>